package com.synnex.salesorderportal.dao.repository;

import com.synnex.salesorderportal.dao.entity.OrderDetail;
import com.synnex.salesorderportal.dao.entity.OrderDetailId;
import com.synnex.salesorderportal.dao.entity.OrderId;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by yachao on 18/5/31.
 */
@Repository
public interface OrderDetailRepository extends JpaRepository<OrderDetail, OrderDetailId> {

    List<OrderDetail> findByIdOrderIdIn(List<OrderId> orderIds);
}
